<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
 <th:block th:replace="headfoot/head::head_ztree"></th:block>
</head>

<body>
	<div class="container-fluid kj-form-container">
				<form
					id="form" class="form-horizontal validate kj-form-container-content" role="form"
					method="post" 	action="/system/dict/save"	>
					<input type="hidden" id="id" name="id" th:value="${entity?.id}" />
					
					<div class="from-group row has-feedback kj-form-title-button-bar">
						<div class="col-md-7">
							<button
								type="button"
								class="btn btn-default btn-sm action-ajax-form kj-btn-save"
							>
								<i class="iconfont icon-baocun"></i>&ensp;保存
							</button>
							<button
								type="button"
								class="btn btn-default btn-sm action-close-tab kj-btn-cancel"
							>
								<i class="iconfont icon-guanbi"></i>&ensp;取消
							</button>
						</div>

						<!--<div class="col-md-5">
							<label class="col-md-6 control-label kj-form-title-button-bar-label">负责人： <span
								th:text="${entity?.createUserId != null ? entity?.createUserId : ''}"></span>
							</label> <label class="control-label kj-form-title-button-bar-label">创建时间：
								<span th:text="${entity?.createDate != null ? #dates.format(entity?.createDate, 'yyyy-MM-dd HH:mm:ss') : #dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}"></span>
							</label>
						</div>-->
					</div>

					<div class="card kj-form-container-card">
						<div class="card-header kj-form-container-card-header">
							<h4>
								<strong>字典信息</strong>
							</h4>
						</div>
						<div class="card-body kj-form-container-card-body">

							<div class="form-group">
								<label class="col-md-2 control-label kj-form-container-content-label">父类型</label>
								<div class="col-md-3 validateDiv">
									<select	id="typeCode"
											   class="form-control input-sm kj-form-container-content-select"
											   name="parentTypeCode"
											   th:data-value="${entity?.parentTypeCode}"
											   data-linkage="true"
											   data-linkage-url="/system/dict/byTypeCode"
											   data-linkage-target="#pid"
											   data-option="请选择">
										<option value="">--无--</option>
										<option th:each="type:${types}" th:value="${type.code}">[[${type.name}]]</option>

									</select>
								</div>

								<label class="col-md-2 control-label kj-form-container-content-label">父字典</label>
								<div class="col-md-3 validateDiv">
									<select	id="pid"   class="form-control input-sm kj-form-container-content-select"
											   name="pid"
											   th:data-value="${entity?.pid}"
											   data-option="请选择">
										<option value="">--无--</option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-md-2 control-label kj-form-container-content-label">字典类型</label>
								<div class="col-md-3 validateDiv">
									<select	id="typeCode"
											class="form-control input-sm kj-form-container-content-select"
											name="typeCode"
											th:data-value="${entity?.typeCode}"
											data-option="请选择">
										<option th:each="type:${types}" th:value="${type.code}">[[${type.name}]]</option>

									</select>
								</div>
								 
								<label class="col-md-2 control-label kj-form-container-content-label">是否启用</label>
								<div class="col-md-3 validateDiv">
									<select	id="enabled"
									class="form-control input-sm kj-form-container-content-select"
									name="enabled"
									th:data-value="${entity?.enabled}"
									data-option="请选择">
									<option value="1">启用</option>
									<option value="0">禁用</option>

									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-md-2 control-label kj-form-container-content-label">字典描述</label>
								<div class="col-md-3 validateDiv">
									<input
											class="form-control input-sm kj-form-container-content-input"
											name="text"
											type="text"
											data-rule-required="true"
											autocomplete="off"
											placeholder="字典描述"
											th:value="${entity?.text}" />
								</div>
								<label class="col-md-2 control-label kj-form-container-content-label">字典值</label>
								<div class="col-md-3 validateDiv">
									<input
										class="form-control input-sm kj-form-container-content-input"
										name="value"
										type="text"
										data-rule-required="true" 
										autocomplete="off"
										placeholder="字典值"
										th:value="${entity?.value}" />
								</div>
							</div>
						</div>
					</div>
				</form>
	</div>

	<th:block th:replace="headfoot/foot::form_ztree_foot"></th:block>



</body>
</html>